﻿using System;
using System.Globalization;
using System.Windows.Data;

namespace SpectrumAnalyser.Controls.Wpf.Converters
{
    public class BoolToStrokeWidthConverter:IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            var boolValue = (bool) value;
            return boolValue ? 3 : 1;
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}